import { createSSRApp } from 'vue'
import App from './App.vue'

// 引入 pinia
import pinia from './store/index'
// 引入 uView UI
import uView from './uni_modules/vk-uview-ui'
// 引入 navbar
import navbar from './common/navbar/index.vue'
// 引入 loading
import loading from './common/loading/index.vue'
// 引入缺省图
import lack from './components/lack/index.vue'

export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  app.use(uView)
  app.component('navbar', navbar)
  app.component('picture', lack)
  app.component('loading', loading)
  return { app }
}

// import { service } from './service/index'

// interface homeInfo {
//   banner: Array<[]>
// }

// const { data } = await service.get<homeInfo>('/home/multidata')
